import type { RouteRecordRaw } from 'vue-router';
/**
 * 静态路由（默认路由）
 */
 export const staticRoutes: Array<RouteRecordRaw> = [
  {
    path: '/home',
    component: () => import('@/views/home/index.vue')
  },
  {
    //重定向主页
    path: '/',
    redirect: '/bebuy'
  },
  {
    path: '/classify',//分类
    component: ()=>import('@/views/classify/index.vue')
  },
  {
    path: '/search',//搜索
    component: ()=>import('@/views/search/index.vue'),
    name:'search'
  },
  {
    path: '/bebuy',//值得买
    component: ()=>import('@/views/beBuy/index.vue')
  },
  {
    path: '/center',//个人中心
    component: ()=>import('@/views/center/index.vue')
  },
  {
    path: '/detail',//详情页
    component: ()=>import('@/views/detail/index.vue')
  },
  {
    path: '/shopcart',
    component: ()=>import('@/views/shopcart/index.vue')
  },
  {
    path: '/login',
    component: ()=>import('@/views/login/index.vue')
  },
  {
    path:'/category',
    component:()=>import('@/views/category/index.vue')
  }
];


/**
 * 定义动态路由
 */
// export const allAsyncRoutes: Array<RouteRecordRaw> = [];
